import request from '@/utils/request'

/**查询云池是否可见对应分组 */
export function list(params) {
  return request({
    url: '/distribution/cloudGroup/list',
    method: 'GET',
    params: params
  })
}

/**新增云池是否可见对应分组 */
export function addCloudGroup(data) {
  return request({
    url: '/distribution/cloudGroup/add',
    method: 'POST',
    data: data
  })
}

/**删除云池是否可见对应分组 */
export function deleteCloudGroup(ids) {
  return request({
    url: `/distribution/cloudGroup/delete/${ids}`,
    method: 'delete'
  })
}

/**修改云池是否可见对应分组 */
export function updateCloudGroup(data) {
  return request({
    url: `/distribution/cloudGroup/update`,
    method: 'POST',
    data: data
  })
}
